<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Indicates whether or not there is a frame ready to read</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="stomp.getsessionid.html">« Stomp::getSessionId</a></li>
      <li style="float: right;"><a href="stomp.readframe.html">Stomp::readFrame »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.stomp.html">Stomp</a></li>
    <li>Indicates whether or not there is a frame ready to read</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="stomp.hasframe" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Stomp::hasFrame</h1>
  <h1 class="refname">stomp_has_frame</h1>
  <p class="verinfo">(PECL stomp &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">Stomp::hasFrame</span> -- <span class="refname">stomp_has_frame</span> &mdash; <span class="dc-title">Indicates whether or not there is a frame ready to read</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-stomp.hasframe-description">
  <h3 class="title">说明</h3>
  <p class="para">面向对象风格 (method):</p>
   <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Stomp::hasFrame</strong></span>(): <span class="type">bool</span></div>

  <p class="para rdfs-comment">过程化风格:</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>stomp_has_frame</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$link</code></span>): <span class="type">bool</span></div>

  <p class="para rdfs-comment">
   Indicates whether or not there is a frame ready to read.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-stomp.hasframe-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    <dt>
<code class="parameter">link</code></dt>
<dd>
<p class="para">仅对过程化样式：由 <span class="function"><a href="stomp.construct.html" class="function">stomp_connect()</a></span> 返回的 stomp 连接标识符。</p></dd>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-stomp.hasframe-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns <strong><code>true</code></strong> if a frame is ready to read, or <strong><code>false</code></strong> otherwise.
  </p>
 </div>


</div></div></div></body></html>